package com.kymatrix.kycarbon.xsmd.common.redis.config;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.validation.annotation.Validated;

/**
 * Cache 配置项
 */
@Data
@Accessors(chain=true)
@Validated
public class CacheProperties {

    /**
     * {@link #redisScanBatchSize} 默认值
     */
    public static final Integer REDIS_SCAN_BATCH_SIZE_DEFAULT = 30;

    /**
     * redis scan 一次返回数量
     */
    private Integer redisScanBatchSize = REDIS_SCAN_BATCH_SIZE_DEFAULT;

}
